import { Column, Entity } from "typeorm";

@Entity("user_wallet", { schema: "cabinet" })
export class UserWallet {
  @Column("int", { primary: true, name: "user_id", unsigned: true })
  userId: number;

  @Column("decimal", {
    name: "amount",
    precision: 6,
    scale: 2,
    default: () => "'0.00'",
  })
  amount: string;

  @Column("decimal", {
    name: "reward_amount",
    precision: 6,
    scale: 2,
    default: () => "'0.00'",
  })
  rewardAmount: string;
}
